// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package org.tinaelle.server.domain;
/**
 * @see org.tinaelle.server.domain.AdRoleScreens
 */
public class AdRoleScreensDaoImpl
    extends org.tinaelle.server.domain.AdRoleScreensDaoBase
{
    /**
     * @see org.tinaelle.server.domain.AdRoleScreensDao#toAdRoleScreensDTO(org.tinaelle.server.domain.AdRoleScreens)
     */
    public org.tinaelle.common.dto.AdRoleScreensDTO toAdRoleScreensDTO(final org.tinaelle.server.domain.AdRoleScreens entity)
    {
        return super.toAdRoleScreensDTO(entity);
    }

    /**
     * Retrieves the entity object that is associated with the specified value object
     * from the object store. If no such entity object exists in the object store,
     * a new, blank entity is created
     */
    private org.tinaelle.server.domain.AdRoleScreens loadAdRoleScreensFromAdRoleScreensDTO(org.tinaelle.common.dto.AdRoleScreensDTO adRoleScreensDTO)
    {
        org.tinaelle.server.domain.AdRoleScreens adRoleScreens = this.load(adRoleScreensDTO.getAdRoleScreensId());
        if (adRoleScreens == null)
        {
            adRoleScreens = org.tinaelle.server.domain.AdRoleScreens.Factory.newInstance();
        }
        return adRoleScreens;
    }

    
    /**
     * @see org.tinaelle.server.domain.AdRoleScreensDao#adRoleScreensDTOToEntity(org.tinaelle.common.dto.AdRoleScreensDTO)
     */
    public org.tinaelle.server.domain.AdRoleScreens adRoleScreensDTOToEntity(org.tinaelle.common.dto.AdRoleScreensDTO adRoleScreensDTO)
    {
        org.tinaelle.server.domain.AdRoleScreens entity = this.loadAdRoleScreensFromAdRoleScreensDTO(adRoleScreensDTO);
        this.adRoleScreensDTOToEntity(adRoleScreensDTO, entity, true);
        return entity;
    }
}